import request from '@/utils/request'

// 监测点接入申报-列表
const monitorPointAccessList = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/getMonitorPointAccessList`,
    method: 'post',
    data: params,
  })
}

// 根据ID查询-监测点接入申报  详情
const monitorPointAccessDetails = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/getMonitorPointAccessId`,
    method: 'post',
    data: params,
  })
}

// 监测点接入申报-新增
const addMonitorPointAccess = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/addMonitorPointAccess`,
    method: 'post',
    data: params,
  })
}

// 监测点接入申报-修改
const editMonitorPointAccess = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/updMonitorPointAccess`,
    method: 'post',
    data: params,
  })
}

// 监测点接入申报-审核
const auditMonitorPointAccess = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/updMonitorPointSH`,
    method: 'post',
    data: params,
  })
}

// 监测点接入申报-接入
const accessMonitorPoint = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/updMonitorPointJR`,
    method: 'post',
    data: params,
  })
}

// 监测点接入申报-删除
const delMonitorPoint = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/delMonitorPointAccess`,
    method: 'post',
    data: params,
  })
}

// 根据id查询接入监测点列表
const facilitiesList = function (params = {}) {
  return request({
    url: `/zy-api/api/monitorNotOnline/getFacilitiesList`,
    method: 'post',
    data: params,
  })
}

export {
  monitorPointAccessList,
  monitorPointAccessDetails,
  addMonitorPointAccess,
  editMonitorPointAccess,
  auditMonitorPointAccess,
  accessMonitorPoint,
  delMonitorPoint,
  facilitiesList
}